package com.dgt.trade.service;

import com.dgt.trade.entitys.trade.Data;
import com.dgt.trade.entitys.trade.Product;

import java.util.HashMap;
import java.util.List;

public interface TradeService {

	HashMap<String,Object> getKByCodeAndType(String code, Integer type);

	List<Product> getProducts();

	HashMap<String,Object> getFreshData(String code);

	HashMap<String,Object> getFsData(String code);

	HashMap<String,Object> getProductsOrderBy(HashMap<String,Object> map);

	int updatePriceByCode(String code, String last_price,String change_count);

	int updateDataByCode(String code,String last_price,String high,String low,String open,String close,String volume,String amount,String BV,String SV,String BP,String SP,String change_count);

}
